import axios from 'axios'
import host from './host'


axios.defaults.baseURL = host.BASE_URL
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
//拦截请求
axios.interceptors.request.use(function(config){
    return config
})

//拦截请求
axios.interceptors.response.use(function(config){
    return config
})